<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('出库单打印')" />
	<style type="text/css">
		table {
			font-size: 12px;
			font-weight:500;
			font-family: 线体;
			margin: auto;
	    	border-collapse: collapse;
		}
	    table, tr, td{
		    text-align: center;
		    width: 1100px;
		    height: 40px;
		}
		.items td{ height:30px; border: 1px solid black;}
		
		@media print{
		   body {
		       height: auto !important;
		   }
		}
	</style>
</head>
<body class="white-bg">
    <table style="margin-top: 30px;">
    	<!-- 打印网页时通过hidden-print隐藏元素 -->
        <div class="text-right hidden-print">
            <button class="btn btn-primary" onclick="printPage()"><i class="fa fa-print"></i> 打印</button>
        </div>
		<tr style="height: 60px;">
			<td><img style="height: 30px" src="/ruoyi.png"></td>
			<td colspan="7" style="font-size: 25px;font-family: 线体;font-weight:500;">湖北鄂能电力建设有限公司-出库单</td>
		</tr>
		<tr>
			<td style="width: 7%"><b>项目名称：</b></td>
			<td style="width: 20%;text-align: left;" th:text="${gcProjectSbclhtcrkd.xmmc}"></td>
			<td style="width: 15%">&nbsp;</td>
			<td style="width: 7%">&nbsp;</td>
			<td style="width: 7%">&nbsp;</td>
			<td style="width: 10%"><b>项目地点：</b></td>
			<td style="width: 20%;text-align: left;" th:text="${gcProjectSbclhtcrkd.xmdd}"></td>
			<td style="width: 10%">&nbsp;</td>
		</tr>
		<tr>
			
			<td><b>供货单位：</b></td>
			<td style="text-align: left;" th:text="${gcProjectSbclhtcrkd.ghdw}"></td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td><b>出库日期：</b></td>
			<td style="text-align: left;" th:text="${riq}"></td>
			<td>&nbsp;</td>
		</tr>
	</table>
	<table class="items">
		<tr>
			<td style="width: 7%"><b>序号</b></td>
			<td style="width: 15%"><b>名称</b></td>
			<td style="width: 20%"><b>规格</b></td>
			<td style="width: 7%"><b>单位</b></td>
			<td style="width: 7%"><b>数量</b></td>
			<td style="width: 10%"><b>单价</b></td>
			<td style="width: 10%"><b>金额</b></td>
			<td style="width: 10%"><b>备注</b></td>
		</tr>
		<tr th:each="lis,status:${gcProjectSbclhtcrkd.item}">
			<td th:text="${status.count}"></td>
			<td th:text="${lis.mingc}"></td>
			<td th:text="${lis.guig}"></td>
			<td th:text="${lis.danw}"></td>
			<td th:text="${lis.shul}"></td>
			<td th:text="${lis.danj}"></td>
			<td th:text="${lis.jine}"></td>
			<td th:text="${lis.memo}"></td>
		</tr>
		<tr>
			<td><b>合计</b></td>
			<td colspan="5">&nbsp;</td>
			<td th:text="${gcProjectSbclhtcrkd.hej}"></td>
			<td>&nbsp;</td>
		</tr>
	</table>
	<table style="margin-top: 15px;">
		<tr>
			<td colspan="2" style="width: 22%;text-align: left;"><b>项目负责人：</b><span th:text="${gcProjectSbclhtcrkd.xmfzr}"></span></td>
			<td colspan="2" style="width: 24%;text-align: left;"><b>出库仓管员：</b><span th:text="${gcProjectSbclhtcrkd.cksh}"></span></td>
			<td style="width: 10%;text-align: left;"><b>会计：</b><span th:text="${gcProjectSbclhtcrkd.ckhj}"></span></td>
			<td style="width: 10%">&nbsp;</td>
		</tr>
	</table>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        function printPage() {
            window.print();
        }
    </script>
</body>
</html>